package com.zyh.shortlick.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
//@MapperScan("com.nageoffer.shortlink.admin.dao.mapper") 注解用于 MyBatis 框架中，它指定了 MyBatis 扫描的包路径，
// 以自动注册所有 Mapper 接口。这样，框架会自动创建这些接口的实现类，
// 并将其注入到 Spring 容器中，简化了 Mapper 的配置过程
@MapperScan("com.zyh.shortlick.admin.dao.mapper")
@EnableDiscoveryClient
@EnableFeignClients("com.zyh.shortlick.admin.remote")
public class ShortLickAdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShortLickAdminApplication.class,args);
    }
}
